package ca.etsmtl.log660.dao;

import org.hibernate.Session;

import ca.etsmtl.log660.configuration.SessionFactoryHelper;
import ca.etsmtl.log660.entity.Location;

class LocationDAO {
	
	public void saveLocation(Location loc){
		Session session = SessionFactoryHelper.getSessionFactory().openSession();
		session.beginTransaction();
		session.persist(loc);
		session.getTransaction().commit();
		session.close();
	}

}
